#ifndef HOMEWIDGET_H
#define HOMEWIDGET_H

#include <QWidget>
#include <QSqlQuery>
#include"studentsql.h"


namespace Ui {
class home_widget;
}

class home_widget : public QWidget
{
    Q_OBJECT

public:
    explicit home_widget(QWidget *parent = nullptr);
    void SetTeacher(const QString&TeaID);

    ~home_widget()override;
public slots:

    void mouseMoveEvent(QMouseEvent *e)override;
    void onComboBoxChanged(const QString& text);

private slots:
    void on_pushButton_clicked();

private:
    Ui::home_widget *ui;
    QPixmap photo;
    //QSqlDatabase db;
    int pushFlag;
    QString TeaID;
    StudentSql sql;

};

#endif // HOMEWIDGET_H
